package Object.Static;

/**
 * Enjoy programming!!!
 * Time: 2021/11/6 -  9:51
 */
public class Test {
    private int id;
    public static void main(String[] args){
        Test test = null;
        for (int i = 0; i < 10; i++){
            test = new Test();
            test.id++;
        }
        System.out.println(test.id);
    }
}
class Test1 {
    private static int id;
    public static void main(String[] args){
        Test1 test = null;
        for (int i = 0; i < 10; i++){
            test = new Test1();
            test.id++;
        }
        System.out.println(test.id);
    }
}

class Test2{
    private static int id;
    public static void main(String[] args){
        for (int i = 0; i < 10; i++){
            Test2.id++;
        }
        System.out.println(Test2.id);
    }
}
